﻿using System.ComponentModel.DataAnnotations;
namespace TeachlyQBank.Models
{
    public class Course
    {
        //使用UUID作为课程表的ID
        public Guid course_id { get; set; }

        [Required(ErrorMessage = "课程名不能为空")]
        [StringLength(50, ErrorMessage = "课程名长度不能超过50个字符")]

        public string ? course_name { get; set; }

        public string ? course_desc { get; set;}
        // 课程所属的老师，这是一个外键
        public string ? teacher_id { get; set;}
        // 表的自增序列
        public long keyid { get; set; }
    }
}
